package com.kl.drs.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kl.drs.bean.bo.TaskInfoBO;
import com.kl.drs.mapper.drs.TaskInfoMapper;
@Service("taskInfoDAO")
public class TaskInfoDAO{
	@Autowired 
	private TaskInfoMapper taskInfoMapper;

	//读取一条数据
	public TaskInfoBO queryTaskInfo(TaskInfoBO taskInfo) {
		
		return taskInfoMapper.queryTaskInfo(taskInfo);
	}
	//更新一条数据
	public int updateTaskInfo(TaskInfoBO taskInfo) {
		return taskInfoMapper.updateTaskInfo(taskInfo);
	}
	//新任务增数据
	public int addTaskInfo(TaskInfoBO taskInfo) {
		
		return taskInfoMapper.addTaskInfo(taskInfo);
	}
	
}
